﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Simulation.Framework
{
    [DisallowMultipleComponent]
    public class PanelBase:MonoBehaviour
    {
        public PanelType panelType;
        public virtual void Init(params object[] data) { }
        public virtual void Clear() { }
        public virtual void Open() { }
        public virtual void Close() { }
        public virtual void Pause() { }
        public virtual void UnPause() { }

    }

    public enum PanelType
    {
        normal = 0, messageBox, top
    }

    public struct PanelContent {
        public PanelType panelType;         // 页面类型
        public EResPathType resType;        // 资源类型
        public string panelPath;
    }
}